import request from '@/utils/request'

let group = '/stat'

export function getAll(data) {
  if (data == null) {
    data = {}
  }
  return request({
    url: group + '/getAll',
    method: 'post',
    data,
  })
}
export function day(data) {
  if (data == null) {
    data = {}
  }
  return request({
    url: group + '/day',
    method: 'get',
    params: data,
  })
}
export function month(data) {
  if (data == null) {
    data = {}
  }
  return request({
    url: group + '/month',
    method: 'get',
    params: data,
  })
}
export function year(data) {
  if (data == null) {
    data = {}
  }
  return request({
    url: group + '/year',
    method: 'get',
    params: data,
  })
}
